<?php

class BmShop_View_Helper_MenuGenerator extends Zend_Dojo_View_Helper_FilteringSelect
{
    public function menuGenerator()
    {
        $menuDbMapper = new Default_Model_DbMapper_Menu();
        $field = $menuDbMapper->getFieldById('1', 'url');
        _pr($field);
        return $this->view->render('menu.phtml');

  /*      $menuConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/menu.ini');
        $menuConfig = $menuConfig->toArray();
        $currentUrl = explode('/', trim($this->view->url(), '/'));

        $this->view->addScriptPath(APPLICATION_PATH . '/../library/Rzd/View/Helper/views/');

        $this->view->leftMenu = $menuConfig['leftMenu'];
        $this->view->rightMenu = $menuConfig['rightMenu'];
        $this->view->selectedModule = isset($currentUrl['0']) ? $currentUrl['0'] : '';
        $this->view->selectedController =  isset($currentUrl['1']) ? $currentUrl['1'] : '';

        return $this->view->render('menu.phtml');*/
    }
}